﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomersGo.aspx.cs" Inherits="CustomersGo" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>  
    <link href="css/fonts.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="CompanyX">
    </ext:ResourceManager>
    <ext:Viewport ID="Viewport1" Layout="Fit" runat="server"> 
        <Items>  
        <ext:GridPanel  ID="GridPanel1"   runat="server"   DisableSelection="true" AnimCollapse="true" TrackMouseOver="false">
            <TopBar>
                <ext:Toolbar ID="Toolbar1" runat="server" Padding="5">
                    <Items>
                        <ext:ComboBox ID="ComboBox1" runat="server"
                            LabelAlign="Right"
                            LabelWidth="50"
                            FieldLabel="大类"
                            DisplayField="ClassName"
                            ValueField="ClassID"
                            Editable="False"
                            Hidden="False"
                            >
                            <Store>
                                <ext:Store ID="StoreBC" runat="server">
                                    <Model>
                                        <ext:Model ID="Model1" runat="server">
                                            <Fields>
                                                <ext:ModelField Name="ClassID"></ext:ModelField>
                                                <ext:ModelField Name="ClassName"></ext:ModelField>
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <Triggers>
                                <ext:FieldTrigger Icon="Clear" Qtip="清除" />
                            </Triggers>
                            <Listeners>
                                <Select Handler="#{ComboBox2}.clearValue();#{StoreSC}.reload();"></Select>
                                <TriggerClick Handler="this.clearValue();" />
                            </Listeners>
                        </ext:ComboBox>
                        <ext:ComboBox ID="ComboBox2" runat="server"
                            LabelAlign="Right"
                            LabelWidth="50"
                            FieldLabel="小类"
                            DisplayField="ClassName"
                            ValueField="ClassID"
                            Editable="False"
                            Hidden="False"
                            >
                            <Store>
                                <ext:Store ID="StoreSC" OnReadData="StoreSC_onRefresh" runat="server">
                                    <Model>
                                        <ext:Model ID="Model2"  runat="server">
                                            <Fields>
                                                <ext:ModelField Name="ClassID"></ext:ModelField>
                                                <ext:ModelField Name="ClassName"></ext:ModelField>
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <Triggers>
                                <ext:FieldTrigger Icon="Clear" Qtip="清除" />
                            </Triggers>
                            <Listeners> 
                                <TriggerClick Handler="this.clearValue();" />
                            </Listeners> 
                        </ext:ComboBox>
                        <ext:ComboBox ID="StatusID" FieldLabel="状态" LabelWidth="50" LabelAlign="Right" runat="server">
                            <Items>
                                <ext:ListItem Text="全部" Value="0"/>
                                <ext:ListItem Text="未接" Value="1"/>
                                <ext:ListItem Text="不要" Value="2"/>
                                <ext:ListItem Text="跟進" Value="3"/>
                                <ext:ListItem Text="未处理" Value="4"/>
                                <ext:ListItem Text="確實" Value="5"/>
                            </Items>
                             
                        </ext:ComboBox>
                        <ext:TextField runat="server" LabelWidth="50" LabelAlign="Right" FieldLabel="关键词" ID="TFKey"></ext:TextField>
                         <ext:ToolbarSeparator ID="ToolbarSeparator6" runat="server"/>
                           <ext:Button ID="Button5" runat="server" Text="显示" Icon="ApplicationFormMagnify">
                              <Listeners>
                                  <Click Handler="#{Store1}.reload();"></Click>
                              </Listeners>
                          </ext:Button> 
                           
                          
                          <ext:ToolbarFill ID="ToolbarFill1" runat="server"/>
                          <ext:Button runat="server" Icon="Add" Text="新建">
                              <DirectEvents>
                                  <Click OnEvent="OpenAddNewCustomer"></Click>
                              </DirectEvents>
                          </ext:Button>
                    </Items>
                </ext:Toolbar>

            </TopBar> 
            <Store>
                <ext:Store runat="server" ID="Store1" PageSize="20"
                            AutoLoad="True"
                            RemotePaging="false"
                            OnReadData="Store1_Refresh" >
                    <Proxy>
                        <ext:PageProxy />
                    </Proxy>
                     <Parameters>
                        <ext:StoreParameter Name="startRemote" Value="#{pageindex}.getValue()" Mode="Raw" />
                        <ext:StoreParameter Name="limitRemote" Value="20" Mode="Raw" />
                        <ext:StoreParameter Name="start" Value="0" Mode="Raw" />
                        <ext:StoreParameter Name="limit" Value="10" Mode="Raw" />
                    </Parameters>
                    <Model>
                        <ext:Model ID="Model3" IDProperty="CTMID" runat="server">
                            <Fields>
                                
                                <ext:ModelField Name="ID"></ext:ModelField>
                                <ext:ModelField Name="CTMID"></ext:ModelField> 
                                <%-- 
                                <ext:ModelField Name="BigClassID"></ext:ModelField>
                                <ext:ModelField Name="SmallClassID"></ext:ModelField> 
                                --%>
                                <ext:ModelField Name="CTMCompany"></ext:ModelField>
                                <ext:ModelField Name="CTMUsername" ></ext:ModelField>
                                <ext:ModelField Name="CTMPhone"></ext:ModelField>
                                <ext:ModelField Name="CTMFax"></ext:ModelField>
                                <ext:ModelField Name="CTMEmail"></ext:ModelField> 
                                <ext:ModelField Name="CTMAddress"></ext:ModelField>
                                <ext:ModelField Name="username"></ext:ModelField>
                                <ext:ModelField Name="LastTime" Type="Date"></ext:ModelField>
                                <%-- 
                                <ext:ModelField Name="LastUserID"></ext:ModelField>
                                <ext:ModelField Name="LastStatus"></ext:ModelField>
                                --%>
                                <ext:ModelField Name="LastRemarks"></ext:ModelField>
                                <ext:ModelField Name="NextContectTime"></ext:ModelField>
                                 <%--
                                <ext:ModelField Name="isStatus"></ext:ModelField>
                                
                                <ext:ModelField Name="inTime" Type="Date"></ext:ModelField>
                                --%>
                                <ext:ModelField Name="Status"></ext:ModelField>
                                <ext:ModelField Name="BigClass"></ext:ModelField>
                                <%--
                                <ext:ModelField Name="SmallClass"></ext:ModelField>
                                --%>
                              
                            </Fields>
                        </ext:Model>
                    </Model> 
                </ext:Store>
            </Store>
            <ColumnModel>
                <Columns> 
                     <ext:Column ID="Column1" runat="server" DataIndex="CTMID" Width="90" Text="號碼"></ext:Column>
                     <%-- 
                     <ext:Column ID="Column11" runat="server" DataIndex="BigClass" Width="90" Text="大類"></ext:Column>
                     <ext:Column ID="Column12" runat="server" DataIndex="SmallClass" Width="90" Text="小類"></ext:Column>
                     --%>
                     <ext:Column ID="Column2" runat="server" DataIndex="CTMCompany" Width="90" Text="公司" ></ext:Column>
                     <ext:Column ID="Column3" runat="server" DataIndex="CTMUsername" Width="90" Text="姓名"></ext:Column>
                     <ext:Column ID="Column11" runat="server" DataIndex="CTMEmail" Width="90" Text="电邮"></ext:Column>
                     <ext:Column ID="Column4" runat="server" DataIndex="CTMPhone" Width="90" Text="電話"></ext:Column>
                     <ext:Column ID="Column5" runat="server" DataIndex="CTMFax" Width="90" Text="傳真"></ext:Column>
                     <ext:Column ID="Column6" runat="server" DataIndex="CTMAddress" Width="90" Text="地點"></ext:Column>
                     <ext:DateColumn ID="Column7" runat="server" DataIndex="LastTime" Width="90" Text="上次日期	" Format="yyyy-MM-dd"></ext:DateColumn>
                      
                     <ext:Column ID="Column13" runat="server" DataIndex="username" Width="90" Text="員工"></ext:Column>
                    
                     <ext:Column ID="Column8" runat="server" DataIndex="Status" Width="90" Text="上次情況"></ext:Column>
                     <ext:Column ID="Column9" runat="server" DataIndex="LastRemarks" Flex="1"  Width="90" Text="內容"></ext:Column>
                     <ext:DateColumn ID="Column10" runat="server" DataIndex="NextContectTime" Width="90" Text="提醒日期" Format="yyyy-MM-dd"></ext:DateColumn> 
                    <ext:CommandColumn ID="CommandColumn1" Width="220" runat="server">
                        <Commands>
                            <ext:GridCommand CommandName="BuYao" Icon="ApplicationDelete" Text="不要"></ext:GridCommand>
                            <ext:GridCommand CommandName="WeiJie" Icon="ApplicationError" Text="未接"></ext:GridCommand>
                            <%-- 
                            <ext:GridCommand CommandName="Details" Icon="ApplicationStop" Text="退回"></ext:GridCommand>
                             --%>
                            <ext:GridCommand CommandName="GenJin" Icon="ApplicationLightning" Text="跟进"></ext:GridCommand>
                            <ext:GridCommand CommandName="BianJi" Icon="ApplicationEdit" Text="编辑"></ext:GridCommand>
                            
                        </Commands>
                        <DirectEvents>
                            <Command OnEvent="RecorderOperates">
                                <ExtraParams>
                                    <ext:Parameter Name="id" Value="record.data.CTMID" Mode="Raw" />
                                    <ext:Parameter Name="cmd" Value="command" Mode="Raw" />
                                </ExtraParams>
                            </Command>
                        </DirectEvents>
                    </ext:CommandColumn>
                </Columns>
            </ColumnModel>  
           <Plugins>
                <ext:RowExpander ID="RowExpander1" runat="server">
                    <Loader ID="Loader1" runat="server" DirectMethod="#{DirectMethods}.GetGrid" Mode="Component">
                        <LoadMask ShowMask="true" />
                        <Params>
                            <ext:Parameter Name="id" Value="this.record.getId()" Mode="Raw" />
                        </Params>
                    </Loader>
                </ext:RowExpander>
            </Plugins>     
           <BottomBar>
               <ext:Toolbar ID="Toolbar2" runat="server">
                   <Items>
                        <ext:ToolbarFill ID="ToolbarFill2" runat="server"/>
                       <ext:Button ID="Button9" runat="server" Icon="PreviousGreen">
                           <DirectEvents>
                               <Click OnEvent="PageClick">
                                    <ExtraParams>
                                          <ext:Parameter Name="s" Value="-20" />
                                     </ExtraParams>
                               </Click>
                           </DirectEvents>
                       </ext:Button>
                       <ext:NumberField ID="pageindex" Text="0"
                        DecimalSeparator="$"
                         Step="20"
                         MinValue="0" runat="server" Width="80">
                           <Listeners>
                               <Change Handler="#{GridPanel1}.store.load();"></Change>
                           </Listeners>
                       </ext:NumberField>
                       <ext:Button ID="Button10" runat="server" Icon="NextGreen">
                           <DirectEvents>
                               <Click OnEvent="PageClick">
                                    <ExtraParams>
                                          <ext:Parameter Name="s" Value="20" />
                                     </ExtraParams>
                               </Click>
                           </DirectEvents>
                       </ext:Button>
                   </Items>
               </ext:Toolbar>
               <%-- 
                 <ext:PagingToolbar ID="PagingToolbar1" HideRefresh="True"    runat="server">
                    <Items>
                        
                        <ext:ToolbarSpacer ID="ToolbarSpacer1" runat="server" Width="5" />
                        <ext:ToolbarTextItem ID="ToolbarTextItem2" runat="server" Text="加载数据:" />
                        <ext:ToolbarSpacer ID="ToolbarSpacer2" runat="server" Width="20" />
                        <ext:Slider 
                            ID="Slider1" 
                            runat="server" 
                            MinValue="0" 
                            MaxValue="7000" 
                            Increment="1000" 
                            Width="350">
                            <Plugins>
                                <ext:SliderTip ID="SliderTip1" runat="server" />
                            </Plugins>
                            <Listeners>
                                <Change Handler="#{RangeText}.setText((newValue+1) + '-' + (newValue + 1000));" />
                                <ChangeComplete Handler="#{GridPanel1}.store.load();" />
                            </Listeners>
                        </ext:Slider>
                        <ext:ToolbarSpacer ID="ToolbarSpacer3" runat="server" Width="20" />
                        <ext:ToolbarTextItem ID="RangeText" runat="server" Text="(1-1000)" />
                    </Items> 
                </ext:PagingToolbar>
                --%>
            </BottomBar>             
            </ext:GridPanel>
        </Items>
    </ext:Viewport>
        <ext:Window ID="Window1"  runat="server" Modal="True" Layout="Fit" Hidden="True" AutoShow="False"   Height="410" Icon="Application"
        Title="跟进详细" Width="800">
        <Items>
           <ext:FormPanel ID="FormPanel1" 
            runat="server" 
            BodyStyle="padding:5px 5px 0;"
            Width="600"
            Layout="HBoxLayout">
            
            <FieldDefaults LabelAlign="Top" MsgTarget="Side" />

            <Defaults>
                <ext:Parameter Name="Border" Value="false" />
                <ext:Parameter Name="Flex" Value="1" />
                <ext:Parameter Name="Layout" Value="anchor" />
            </Defaults>

            <Items> 
                <ext:Panel ID="Panel1" runat="server">
                    <Items>
                        
                        <ext:TextField ID="CTMID" runat="server" FieldLabel="號碼" Disabled="True" AnchorHorizontal="98%" />
                        <ext:TextField ID="CTMCompany" runat="server" FieldLabel="公司" AnchorHorizontal="98%" />
                        
                        <ext:DateField runat="server" ID="CTMNextContectTime" ShowToday="False" FieldLabel="提醒日期" AnchorHorizontal="98%"></ext:DateField>
                        <ext:ComboBox runat="server" ID="CTMLastStatus" Editable="False" AnchorHorizontal="98%" FieldLabel="本次情况">
                            <Items>
                                <ext:ListItem Text="沒接" Value="1"/>
                                <ext:ListItem Text="不要" Value="2"/>
                                <ext:ListItem Text="跟進" Value="3"/>
                                <ext:ListItem Text="確實" Value="5"/>
                            </Items>
                            <SelectedItems>
                                <ext:ListItem Value="3"/>
                            </SelectedItems>
                        </ext:ComboBox>
                        <ext:TextArea ID="CTMLastRemarks" AnchorHorizontal="98%" Rows="7" runat="server" FieldLabel="內容"></ext:TextArea>
                    </Items>
                </ext:Panel>

                <ext:Panel ID="Panel2" runat="server">
                    <Items>
                        <ext:ComboBox ID="BigClassID" runat="server" 
                            LabelWidth="50"
                            FieldLabel="大类"
                            DisplayField="ClassName"
                            ValueField="ClassID"
                            Editable="False"
                            AnchorHorizontal="98%"
                            >
                            <Store>
                                <ext:Store ID="StoreBC1" runat="server">
                                    <Model>
                                        <ext:Model ID="Model4" runat="server">
                                            <Fields>
                                                <ext:ModelField Name="ClassID"></ext:ModelField>
                                                <ext:ModelField Name="ClassName"></ext:ModelField>
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store> 
                            <Listeners>
                                <Select Handler="#{SmallClassID}.clearValue();#{StoreSC1}.reload();"></Select> 
                            </Listeners>
                        </ext:ComboBox>
                        <ext:ComboBox ID="SmallClassID" runat="server"
                            LabelWidth="50"
                            FieldLabel="小类"
                            DisplayField="ClassName"
                            ValueField="ClassID"
                            AnchorHorizontal="98%"
                            Editable="False"
                            >
                            <Store>
                                <ext:Store ID="StoreSC1" OnReadData="StoreSC1_onRefresh" runat="server">
                                    <Model>
                                        <ext:Model ID="Model5"  runat="server">
                                            <Fields>
                                                <ext:ModelField Name="ClassID"></ext:ModelField>
                                                <ext:ModelField Name="ClassName"></ext:ModelField>
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store> 
                        </ext:ComboBox>
                        
                        <ext:TextField ID="CTMUsername" runat="server" FieldLabel="联络人" AnchorHorizontal="98%"  />
                        <ext:TextField ID="CTMPhone" runat="server" FieldLabel="电话" AnchorHorizontal="98%" />
                        <ext:TextField ID="CTMFax" runat="server" FieldLabel="传真" AnchorHorizontal="98%" />
                        <ext:TextField ID="CTMEmail" runat="server" FieldLabel="E-mail" AnchorHorizontal="98%" />
                        <ext:TextField ID="CTMAddress" runat="server" FieldLabel="地址" AnchorHorizontal="98%" />
                        
                    </Items>
                </ext:Panel> 
                
            </Items>

            <Buttons>
                <ext:Button ID="Button1" Padding="5" runat="server" Text="快捷输入" >
                    <DirectEvents>
                        <Click OnEvent="OpenDirectInput"></Click>
                    </DirectEvents>
                </ext:Button> 
                <ext:Button ID="Button7" Padding="5" runat="server" Text="保存" >
                    <DirectEvents>
                        <Click OnEvent="SaveGenJin"></Click>
                    </DirectEvents>
                </ext:Button> 
            </Buttons>
        </ext:FormPanel>
        </Items>
        </ext:Window>
        <ext:Window 
            ID="Window2" 
            runat="server" 
            Closable="True"
            Resizable="false"
            Hidden="True"
            Height="260" 
            Icon="Lock" 
            Title="快捷输入"
            Draggable="false"
            Width="350"
            Modal="true"
            Padding="5" >
            <Items>
                 <ext:FormPanel ID="FormPanel2" 
            runat="server" 
            BodyStyle="padding:5px 5px 0;"
            　
            Layout="HBoxLayout">
            
            <FieldDefaults LabelAlign="Left" MsgTarget="Side" />

            <Defaults>
                <ext:Parameter Name="Border" Value="false" />
                <ext:Parameter Name="Flex" Value="1" />
                <ext:Parameter Name="Layout" Value="anchor" />
            </Defaults>

                <Items> 
                     <ext:Panel ID="Panel4" runat="server">
                        <Items> 
                            <ext:TextField ID="TF1"  LabelAlign="Right" FieldLabel="挂墙机" LabelWidth="80" runat="server"></ext:TextField>
                            <ext:TextField ID="TF2"  LabelAlign="Right" FieldLabel="柜机" LabelWidth="80" runat="server"></ext:TextField>
                            <ext:TextField ID="TF3"  LabelAlign="Right" FieldLabel="窗口机" LabelWidth="80" runat="server"></ext:TextField>
                            <ext:TextField ID="TF4"  LabelAlign="Right" FieldLabel="天花/口琴机" LabelWidth="80" runat="server"></ext:TextField>
                            <ext:TextField ID="TF5"  LabelAlign="Right" FieldLabel="水塔机" LabelWidth="80" runat="server"></ext:TextField>
                            <ext:TextField ID="TF6"  LabelAlign="Right" FieldLabel="中央机" LabelWidth="80" runat="server"></ext:TextField>
                            <ext:TextField ID="TF7"  LabelAlign="Right" FieldLabel="其他" LabelWidth="80" runat="server"></ext:TextField>　
                             　
                        </Items>
                    </ext:Panel> 
                     <ext:Panel ID="Panel5" runat="server">
                        <Items> 
                            <ext:TextField ID="TextField1"  LabelAlign="Right" FieldLabel="价钱" LabelWidth="50" runat="server"></ext:TextField>
                            <ext:TextField ID="TextField2"  LabelAlign="Right" FieldLabel="价钱" LabelWidth="50" runat="server"></ext:TextField>
                            <ext:TextField ID="TextField3"  LabelAlign="Right" FieldLabel="价钱" LabelWidth="50" runat="server"></ext:TextField>
                            <ext:TextField ID="TextField4"  LabelAlign="Right" FieldLabel="价钱" LabelWidth="50" runat="server"></ext:TextField>
                            <ext:TextField ID="TextField5"  LabelAlign="Right" FieldLabel="价钱" LabelWidth="50" runat="server"></ext:TextField>
                            <ext:TextField ID="TextField6"  LabelAlign="Right" FieldLabel="价钱" LabelWidth="50" runat="server"></ext:TextField>
                            <ext:TextField ID="TextField7"  LabelAlign="Right" FieldLabel="价钱" LabelWidth="50" runat="server"></ext:TextField>　
                        </Items>
                    </ext:Panel> 
                </Items>
            </ext:FormPanel> 
            </Items>
            <Buttons> 
                <ext:Button ID="btnCancel" runat="server" Text="添加" Icon="Add">
                    <DirectEvents>
                        <Click OnEvent="DirectInputsMethod"></Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
        <ext:Window runat="server" ID="Window3"
            Collapsible="False"
            Resizable="False"
            Hidden="True"
            Height="320"
            Icon="Add"
            Title="添加"
            Draggable="False"
            Width="250"
            Modal="True"
            Padding="5"
            >
            <Items>
                <ext:FormPanel ID="FormPanel3" 
                    runat="server" 
                    BodyStyle="padding:5px 5px 0;"
            　
                    Layout="HBoxLayout">
            
                    <FieldDefaults LabelAlign="Left" MsgTarget="Side" />

                    <Defaults>
                        <ext:Parameter Name="Border" Value="false" />
                        <ext:Parameter Name="Flex" Value="1" />
                        <ext:Parameter Name="Layout" Value="anchor" />
                    </Defaults>
                <Items>
                    <ext:Panel runat="server">
                        <Items>
                            <ext:TextField runat="server" ID="tf3CTMID" FieldLabel="编号" LabelWidth="50" LabelAlign="Right" Disabled="True"></ext:TextField>
                            <ext:TextField ID="tf3CompanyName" runat="server" FieldLabel="公司" LabelAlign="Right"  LabelWidth="50" />
                            <ext:ComboBox ID="tf3BigID" runat="server" 
                            
                                LabelAlign="Right"
                            FieldLabel="大类"
                            DisplayField="ClassName"
                            ValueField="ClassID"
                            Editable="False"
                             LabelWidth="50"
                            >
                            <Store>
                                <ext:Store ID="store3BigID" runat="server">
                                    <Model>
                                        <ext:Model ID="Model6" runat="server">
                                            <Fields>
                                                <ext:ModelField Name="ClassID"></ext:ModelField>
                                                <ext:ModelField Name="ClassName"></ext:ModelField>
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store> 
                            <Listeners>
                                <Select Handler="#{tf3SmallID}.clearValue();#{store3SmallID}.reload();"></Select> 
                            </Listeners>
                        </ext:ComboBox>
                        <ext:ComboBox ID="tf3SmallID" runat="server"
                            
                            LabelAlign="Right"
                            FieldLabel="小类"
                            DisplayField="ClassName"
                            ValueField="ClassID"
                             LabelWidth="50"
                            Editable="False"
                            >
                            <Store>
                                <ext:Store ID="store3SmallID" OnReadData="store3SmallID_onRefresh" runat="server">
                                    <Model>
                                        <ext:Model ID="Model7"  runat="server">
                                            <Fields>
                                                <ext:ModelField Name="ClassID"></ext:ModelField>
                                                <ext:ModelField Name="ClassName"></ext:ModelField>
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store> 
                        </ext:ComboBox>
                        
                        <ext:TextField ID="tf3Username" runat="server" FieldLabel="联络人" LabelAlign="Right"  LabelWidth="50"  />
                        <ext:TextField ID="tf3Phone" runat="server" FieldLabel="电话" LabelAlign="Right"  LabelWidth="50" />
                        <ext:TextField ID="tf3Fax" runat="server" FieldLabel="传真" LabelAlign="Right"  LabelWidth="50" />
                        <ext:TextField ID="tf3Email" runat="server" FieldLabel="E-mail" LabelAlign="Right"  LabelWidth="50" />
                        <ext:TextField ID="tf3Address" runat="server" FieldLabel="地址" LabelAlign="Right"  LabelWidth="50" />
                        </Items>
                    </ext:Panel>
                </Items>
                </ext:FormPanel>
            </Items>
            <Buttons>
                <ext:Button runat="server" Text="编辑" Icon="Add">
                    <DirectEvents>
                        <Click OnEvent="AddNewCustomer"></Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    </form>
</body>
</html>
